<?php
/*
# $Id: GlobalViewController.php 176 2007-10-10 14:02:32Z james $
#
# Override this with your own application's "GlobalView" controller if you want
# to use a different default layout, or just want more control over the GlobalView.
*/

/*
# @class GlobalViewController
*/
class GlobalViewController extends Controller {

	/*
	# @method View get( array $params)
	#
	# Returns the "Global View", which is the View object that sits above all
	# others in the View hierarchy.
	*/
	public function index($params) {

		// Create the View
		$view = new View($this);
		$view->setSource(Config::get('core.dir.views').'/GlobalView.tpl');

		// Create a View for rendering the SystemLog
		$slView = new View();
		$slView->setSource(Config::get('core.dir.views').'/SystemLog.tpl');
		$view->attachViewToSlot($slView, 'systemlog');

		// Return
		return $view;
	}
}
?>